Skip to content

Conversation

@Mathwizard1
Copy link

@y-richie-y

Possible solution to the bool list.
Handles most of the list functions like native methods (getter index and slice based, setter index based, append, _iter_, _repr_ and _next_ )
Easy conversion to native Python list also.
Uses bytes class as mentioned.

  • Needs intensive test and corrections.

@y-richie-y
Copy link
Collaborator

It would be good to know if this is faster. Maybe you could try just creating a wrapper class for packbits https://numpy.org/doc/2.3/reference/generated/numpy.packbits.html
but displaying the data in binary.

@Mathwizard1
Copy link
Author

I will provide a basic comparison with lists and a compact bool list, then look into the numpy packbits wrapper. Also could you elaborate on displaying data in binary, as in? I got a bit confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants